<ul class="sub_nav">
<% @vail.categories.find(:first).vails.each do |vail| %>
	<li class="link"><%= link_to vail.name, path_for_vail(vail) %></li>
	<% unless @vail.categories.find(:first).vails.find(:all).index(vail) == @vail.categories.find(:first).vails.find(:all).length - 1 %>
		<li class="divider">|</li>
	<% end %>
<% end %>
</ul>

<div id="mini_right">
	<h1><%= @vail.name %></h1>
	<h3><%= @vail.headline %></h3>
</div>
<div id="mini_left">
	<% unless @vail.graphic.nil? %>
		<%= image_tag @vail.graphic.public_filename(:thumb) %>
	<% end %>
</div>

<div class="text_area"><%= @vail.body %></div>

<div id="datasheet">
	<% @vail.datasheets.each do |datasheet| %>
		<div class="datasheet_link">
			<div class="download_link">
				Download the <%= link_to datasheet.name, datasheet.public_filename %> datasheet.
			</div>
			<div class="download_icon">
				<%= link_to image_tag("/images/downLoad_30x30.png"), datasheet.public_filename %>
			</div>
		</div>
	<% end %>
</div>

<% if logged_in? %>
<%= render :partial => 'shared/version', :locals => { :versioned => @vail } %>
<br/>
<ul class="right">
	<%= render :partial => 'shared/upload_delete_graphic', :locals => { :graphicable_resource => @vail } %>
	<li class="horizontal"><%= link_to "Upload Datasheet", new_datasheet_path(:controller_type => params[:controller], :id => @vail) %></li>
	<li class="horizontal">|</li>
	<li class="horizontal"><%= link_to "Edit", edit_vail_path(@vail) %></li>
</ul>
<br/>
<ul class="right">
	<li class="horizontal"><%= link_to "new feature", new_feature_path(:vail_id => @vail) %></li>
</ul>
<% end %>


<br/>
<%= render :partial => 'shared/features', :object => @vail.features %>



<div id="clear"></div>